package com.xdwanj.retrofittest.api;

import androidx.lifecycle.LiveData;

import com.xdwanj.retrofittest.data.TokenUser;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;

public interface FlickrApi {

    @GET("/")
    Call<String> fetchContents();


    @POST("/prod-api/api/login")
    Call<TokenUser> fetchToken(@Body TokenUser user);

}
